package jp.seraph.jsade.message;

import jp.seraph.jsade.effector.EffectorKind;

public class MessageUtil {
    private MessageUtil() {

    }

    static {
        MESSAGE = new JapaneseMessage();
    }

    public static void setMessage(Message aMessage) {
        MESSAGE = aMessage;
    }

    private static Message MESSAGE;

    public static String alreadyRunning() {
        return MESSAGE.alreadyRunning();
    }

    public static String alreadyConnected() {
        return MESSAGE.alreadyConnected();
    }

    public static String noChildNode() {
        return MESSAGE.noChildNode();
    }

    public static String firstChildMustBeLeaf() {
        return MESSAGE.firstChildMustBeLeaf();
    }

    public static String isNotNaoEffector(EffectorKind aKind) {
        return MESSAGE.isNotNaoEffector(aKind);
    }

    public static String isNotNaoEffector(String aName) {
        return MESSAGE.isNotNaoEffector(aName);
    }

    public static String argumentCountIsNotEven() {
        return MESSAGE.argumentCountIsNotEven();
    }

    public static String noJointFound(String aName) {
        return MESSAGE.noJointFound(aName);
    }

    public static String oidIsNotNaoOid() {
        return MESSAGE.oidIsNotNaoOid();
    }

    public static String jidIsNotNaoJid() {
        return MESSAGE.jidIsNotNaoJid();
    }

    public static String unsupportedFPR(String aName) {
        return MESSAGE.unsupportedFPR(aName);
    }

    public static String enumAssertMessage(String aEnumName) {
        return MESSAGE.enumAssertMessage(aEnumName);
    }

    public static String enumValueNotFound(String aEnumName, String aValueName) {
        return MESSAGE.enumValueNotFound(aEnumName, aValueName);
    }

    public static String parseException() {
        return MESSAGE.parseException();
    }

    public static String lexException(char aErrorChar) {
        return MESSAGE.lexException(aErrorChar);
    }

    public static String matchedEffectorNotFound(String aJointName) {
        return MESSAGE.matchedEffectorNotFound(aJointName);
    }

    public static String unsupportedPerceptor(String aPerceptorName) {
        return MESSAGE.unsupportedPerceptor(aPerceptorName);
    }
}
